
class WarnInfoModel {
  String id = "";
  /// 自定义名称
  String name = "";
  /// 设备编号
  String code = "";
  /// 设备型号
  String modelName = "";
  /// 报警类型 0-T1探头故障, 1-T2探头故障, 2-T3探头故障, 3-温度超上限报警, 4-温度超下限报警, 5-开门报警, 6-冷凝器清洁报警
  int type = -1;
  /// 状态: 1-未查看, 2-已查看
  int status = 0;
  /// 创建时间
  String createTime = "";

  WarnInfoModel({
    this.id = "",
    this.name = "",
    this.code = "",
    this.modelName = "",
    this.type = -1,
    this.status = 0,
    this.createTime = "",
  });

  WarnInfoModel.fromJson(Map<String, dynamic> json) {
    id = json["id"].toString();
    name = json["name"].toString();
    code = json["code"].toString();
    modelName = json["modelName"].toString();
    type = json["type"];
    status = json["status"];
    createTime = json["createTime"];
  }



}